#ifndef PRODUCTFORM_H
#define PRODUCTFORM_H

#include <QtGui/QWidget>
#include <qfile.h>
#include <QDomDocument>
#include <QTextStream>
#include <QTextCodec>
#include "ui_productform.h"
#include "addform.h"
#include "setcolors.h"
#include <QMessageBox>
#include <QTableWidgetItem>
#include "order.h"
#include "MyTableWidgetItem.h"
#include <QItemDelegate>
#include <QObject>

class ProductForm : public QWidget
{
    Q_OBJECT

public:
    ProductForm(QWidget *parent = 0);
    ~ProductForm();
    
    void SetProductData(COrder::SProduct &);    
    COrder::SProduct GetProduct();
    void CreatePostpressTable();
        
public slots:
	void OpenSetColor();
	void CloseSetColor();
	int OpenPostpressParam(int, int);
	int SetColorRow(int, int);
	int UpdatePostpressParam(QString);
	int UpdatePostpressParam2(QString);
	void ShowOnlyActiveRow();
	void ShowAllRow();
	
	void AutoProductType(QString);
	//void OpenPostPrint(QListWidgetItem*);
public:
    Ui::ProductFormClass ui;
    setcolors set_colors;
    QColor active_row;
    QColor unactive_row;
};

#endif // PRODUCTFORM_H
